<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加用户</title>
<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
<link href="/res/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/jquery.js"></script>
<script type="text/javascript" src="/res/js/select-ui.min.js"></script>
<script type="text/javascript" src="/res/js/lib/formvalid/FormValid.js"></script>
<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
<script type="text/javascript" src="/res/js/pages/system/roleAdd.js"></script>

<script type="text/javascript">
	$(document).ready(function(e) {
		$("select").uedSelect({});	
	});
</script>
</head>

<body style="overflow-x:hidden;">
	<div class="formbody">

		<form action="/system/role/add/save" method="post" onsubmit="return checkData(this)">
			<div id="tab1" class="tabson">
				<div class="formtext">					
				</div>
				<ul class="forminfo">
					<li><label>角色名称<b>*</b></label> <input name="name" value="${role.name}" valid="required|limit" type="text" class="dfinput" style="width:150px;" />
					    <span id="errMsg_name" class="errMsg">角名为2~20个字符</span>
					</li>
					<li><label>排序</label><input name="sort" value="${role.sort}" valid="isNumber" type="text" class="dfinput" style="width:150px;" ></input>
					    <span id="errMsg_sort" class="errMsg"></span>
					</li>				
					<li><label>是否启用<b></b></label>
						<label>启用<input type="radio" name="isEnable" value="1" ${role.isEnable==1?"checked":""}/></label>
						<label>禁用<input type="radio" name="isEnable" value="0" ${role.isEnable==1?"":"checked"}/></label>					
					</li> 					
					<li><label>&nbsp;</label> <input type="submit" class="btn" value="保 存" /></li>
				</ul>
			</div>
		</form>
	</div>
	${actionMsg}
</body>

</html>


